import { defineNuxtPlugin } from "#app";
import dotenv from "dotenv";
import { existsSync } from "fs";

const mode = process.env.NODE_ENV || "production";

[".env", `.env.${mode}`, ".env.local", `.env.${mode}.local`].forEach(file => {
  if (existsSync(file)) {
    dotenv.config({ path: file, override: true });
  }
});

export default defineNuxtPlugin(() => {
  //
});
